/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package desu.nya.animepersistance.bo.impl;

import desu.nya.animepersistance.bo.GenreBo;
import desu.nya.animepersistance.dao.GenreDao;
import desu.nya.animepersistance.model.Genre;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author ievstratov
 */
@Service("GenreBo")
public class GenreBoImpl implements GenreBo{
    @Autowired
    GenreDao genreDao;

    public void setGenreDao(GenreDao genreDao){
        this.genreDao = genreDao;
    }
    
    @Override
    public void save(Genre genre) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void delete(Genre genre) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void update(Genre genre) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public List<Genre> getGenresByMask(long mask) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public List<Genre> getAllGenres() {
        return genreDao.findAll();
    }

    @Override
    public List<Genre> getListId() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
}
